<div class="left">
<h1 class="titles"><?php  echo $language['Language']['name'];?></h1>
<div id="lan-users">
<h2 class="sub-titles">学习<?php  echo $language['Language']['name'];?>的用户</h2>

        <?php foreach ($users as $user): ?>
            <dl class="avatars">
            <dt>
            <?php echo $this->Avatar->userLink($user['User']) ?>
            </dt>
            <dd> <?php echo $linker->userLink($user['User']) ?>
            </dl>
        <?php endforeach ?>    
        <div class="clear">
            
        </div>
</div>
	<h2 class="sub-titles"><?php echo $language['Language']['name'].'最新职位';?></h2>
	<table class="post-list">
<tr><td>语言</td><td>职位名称</td><td>发布者</td><td>发布时间</td><td>截止日期</td></tr>
	<?php foreach ($jobs as $job):?>
	<tr>
		<td><?php echo $this->Html->link($job['Language']['name'],array('controller'=>'languages','action'=>'view',$job['Language']['id'])) ?></td>
		<td><?php echo $this->Html->link($job['City']['name']."-".$job['Job']['name'], array('controller' => 'jobs', 'action' => 'view', $job['Job']['id'])); ?></td>
		<td>
			<?php echo $this->Linker->userLink($job['User']); ?>
		</td>
    		<td><?php echo $job['Job']['updated']; ?>&nbsp;</td>
		<td><?php echo $time->format($format="Y-m-d",$job['Job']['ends']); ?>&nbsp;</td>
	</tr>
<?php endforeach; ?>
	</table>


<div id='words'>
    <h2 class="sub-titles"><?php  echo $language['Language']['name'];?>单词</h2>
	<?php if (!empty($words)):?>
	<table class="post-list">
		<tr >
			<td>单词</td>
			<td>解释</td>
			<td class="user">创建者</td>
			<td class="time">创建时间</td>
		</tr>
	<?php
		foreach ($words as $word):
		?>
		<tr >
			<td><?php echo $word['Word']['word'];?></td>
			<td><?php echo $word['Word']['description'];?></td>
			<td><?php echo $linker->userLink($word['User']);?></td>
			<td class="time"><?php echo $time->format($format='m-d H:m',$word['Word']['created']);?></td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>   
</div>
</div>
<div class="right">
	<div class="actions">
		<ul>
			<li> <?php echo $html->link('<<返回所有语言', '/languages') ?>
			<li><?php echo $this->Html->link(__('添加新单词', true), array('controller' => 'words', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
